#include "stdafx.h"
#include "MainWindow.h"

/// <summary>
/// The C'tor
/// </summary>
std::MainWindow::MainWindow(void)
{
	InitializeComponent();
}

/// <summary>
/// The Destructor
/// Clean resources
/// </summary>
std::MainWindow::~MainWindow()
{
	if (components)
	{
		delete components;
	}
}


System::Void 
std::MainWindow::bgGo_Click
(System::Object^  sender, System::EventArgs^  e)
{
	std::BusinessCalc* pBs = new std::BusinessCalc();

	this->lbMessage->Text = "Calculated by unmanaged class: 2+3=" + pBs->sum(2,3).ToString();
}
